package edu.spec.student.model.event;

import edu.spec.basic.model.enumeration.Status;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by MadFrog on 2017/5/11.
 */
@Entity
@Table(name = "t_event")
public class Event {

    private int id;
    private String name;
    private String description;
    private Date eventDate;
    private Integer lastMinutes;
    private String location;

    // 活动宣传照片，分辨率为320*200
    private String snapshoot;
    private String wxNewsUrl;

    private int maxSeat;
    private Status status;
    private Date createDate;
    private Date updateDate;

    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Column(name = "event_date")
    public Date getEventDate() {
        return eventDate;
    }

    public void setEventDate(Date eventDate) {
        this.eventDate = eventDate;
    }

    @Column(name = "last_minutes")
    public Integer getLastMinutes() {
        return lastMinutes;
    }

    public void setLastMinutes(Integer lastMinutes) {
        this.lastMinutes = lastMinutes;
    }

    public String getSnapshoot() {
        return snapshoot;
    }

    public void setSnapshoot(String snapshoot) {
        this.snapshoot = snapshoot;
    }

    @Column(name = "wx_news_url")
    public String getWxNewsUrl() {
        return wxNewsUrl;
    }

    public void setWxNewsUrl(String wxNewsUrl) {
        this.wxNewsUrl = wxNewsUrl;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Column(name = "max_seat")
    public int getMaxSeat() {
        return maxSeat;
    }

    public void setMaxSeat(int maxSeat) {
        this.maxSeat = maxSeat;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    @Column(name = "create_date")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Column(name = "update_date")
    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Event() {
    }
}
